<?php

/**
 * @author dr4g0n
 * @copyright 2008
 */

//$modules->pass_hook($tags);

switch ($ajax->get_callback($ajax_input,$ajax_output)) {
	case 'aj1':
	die ('TEST WORKS!!');
	break;
	default:
}

//$mysql->sqlcaching(true); $mysql->connect_array($conn_str) or die($mysql->lasterror);
$p=$_GET["p"]; if (empty($p)) $p='index';
$tmpl->get_page($p);

$tags=array(
"TEMPLATE_PATH"=>$template_path,
"jscript"=>$ajax->generate_js_code("index.php"),
"AJ1"=>$ajax->register_callback_onclick("aj1","","reviews"),
//"AJ2"=>$ajax->register_callback_onfocus("aj2","login_username","login_username"),
//"AJ3"=>$ajax->register_callback_onkeypress("aj3","login_username","login_password"),
"R2"=>"Online:".$userinfo["online_time"],
"P1"=>"<a href=\"index_1.php\">link test</a>",
"P2"=>"Play 2",
"title"=>$site["name"],
"WEB"=>"web ".substr($bench->end(),0,6)." msec",
"SQL"=>"sql ".$mysql->get_counter()." queries",
);

/*
function passtest($param) {
global $modules;
$modules->pass_hook($tags);
}
*/

//passtest("testparameter");
//$modules->pass_hook($tags);

//$online=false;
//$downloads=true;
$tmpl->blocks();
$tmpl->set_pageexpiration(PAGE_EXPIRATION_NOW);

//$tmpl->assign_var($tags);
//$page=$tmpl->finalize_page();
//print ($page);
$tmpl->quickrender($tags);

?>